/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.ainlolcat.aincalc2;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Администратор
 */
public class Console {
    public static void WriteLine(String mesg){
        System.out.println(mesg);
    }
    public static void Write(String mesg){
        System.out.print(mesg);
    }
    public static String ReadLine(){
        BufferedReader brid = new BufferedReader(new InputStreamReader(System.in));
        try {
            return brid.readLine();
        } catch (IOException ex) {
            WriteLine("Console: error: "+ex.toString());
            return "Console: error: "+ex.toString();
        }
    }

}
